package vip.meeet.jdk.concurent;

public class Synchronize {

    private Object lock = new Object();

    public static synchronized void doSomethingA(){

    }

    public static void doSomethingB(){
        synchronized (Synchronize.class){

        }
    }

    public synchronized void doSomethingC(){

    }

    public void doSomethingD(){
        synchronized (this){

        }
    }

    public void doSomethingE(){
        synchronized (lock){

        }
    }
}
